import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './style/var.less'
import './style/global.less'
import showMessage from './utils/showMessage'

// 注册全局自定义指令
import vLoading from './directives/loading'
Vue.directive('loading', vLoading);
// mock 假数据 ajax请求拦截
import './mock'
import './api/banner'
Vue.prototype.$showMessage = showMessage;
new Vue({
  router,
  store,
  // render函数：虚拟dom，生产真实的dom，的模板
  render: h => h(App)
}).$mount('#app')
